package cn.huiyunche.base.service.enums;

/**
 * 是否带伤发运
 */
public enum SUserBindStatusEnum {
    T(true, "是"), F(false, "否");

    private final Boolean value;
    private final String text;

    SUserBindStatusEnum(Boolean value, String text) {
        this.value = value;
        this.text = text;
    }

    public Boolean getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static SUserBindStatusEnum getByValue(Boolean value) {
        for (SUserBindStatusEnum temp : SUserBindStatusEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
